#ifndef __CMD_VCAP_THREAD_H__
#define __CMD_VCAP_THREAD_H__

#define COMDRVS_CAP_INIT                  0xFF00
#define COMDRVS_CAP_SET_READ_ADDRESS      0xFF01
#define COMDRVS_CAP_PREPARE_READ          0xFF02
#define COMDRVS_CAP_GET_READ_STATE        0xFF03
#define COMDRVS_CAP_SET_WRITE_ADDRESS     0xFF04
#define COMDRVS_CAP_PREPARE_WRITE         0xFF05
#define COMDRVS_CAP_GET_WRITE_STATE       0xFF06

#define COMDRVS_CAP_RESET_SENSOR          0xFF07

#define FRAME_BUFFER_OFFSET_PHY_DDR       0x20000000

#define INDUSTRIALCAMERA   1
#ifdef INDUSTRIALCAMERA
#define READ_BUFFER_SIZE          (640*480*2)
#define WRITE_BUFFER_SIZE         (640*480*2)
#define IMAGE_WIDTH               640
#define IMAGE_HEIGHT              480
#else
#define READ_BUFFER_SIZE          (1280*720*2)
#define WRITE_BUFFER_SIZE         (1280*720*2)
#define IMAGE_WIDTH               1280
#define IMAGE_HEIGHT              720
#endif

#define READ_BUFFER_COUNT         1
#define TOTAL_READ_BUFFER_SIZE    (READ_BUFFER_SIZE * READ_BUFFER_COUNT)

#define WRITE_BUFFER_COUNT        1
#define TOTAL_WRITE_BUFFER_SIZE   (WRITE_BUFFER_SIZE * WRITE_BUFFER_COUNT)

#define BUFFER_READ_OFFSET        0
#define BUFFER_WRITE_OFFSET       TOTAL_READ_BUFFER_SIZE

#define FRAMEBUFFER_SIZE          (TOTAL_READ_BUFFER_SIZE + TOTAL_READ_BUFFER_SIZE)

#define RAW_FILE_NAME    "/mnt/grap.raw"
#define RAW_L_FILE_NAME  "/mnt/grapl.raw"
#define RAW_H_FILE_NAME  "/mnt/graph.raw"



int vcap_process();
void *video_cap_thread();


#endif
